package com.zrrd.spring_01.service.impl;

import com.zrrd.spring_01.mapper.TeaDao;
import com.zrrd.spring_01.service.TeaService;

/**
 * @author WanJl
 * @version 1.0
 * @title TeaServiceImpl
 * @description
 * @create 2024/10/20
 */
public class TeaServiceImpl02 implements TeaService {
    private TeaDao teaDao;

    @Override
    public void method() {
        teaDao.teaDaoMethod();
        System.out.println(teaDao);
        System.out.println("啦啦啦啦啦啦啦啦阿里");
    }


    /**
     * 为teaDao变量赋值对象的方法，对象从哪来？从IOC容器中来，是一个Bean
     * @param teaDao
     */
    public void setTeaDao(TeaDao teaDao) {
        this.teaDao = teaDao;
    }
}
